class Person():
    name = "张三"
    age = 18
    def __init__(self, sex, address):
        self.sex = sex
        self.address = address
    def show(self):
        self.show_name()
        print("姓名：%s, 年龄：%d, 性别：%s, 地址：%s" % (self.name, self.age, self.sex, self.address))
    @classmethod
    def show_name(cls):
        cls.show()
        print("姓名：%s" % cls.name)
        # print(cls.sex)

zs=Person("男", "北京")
ls=Person("女", "长沙")
# zs.show()
zs.show_name()
# zs.show_name()
# Person.show_name()

# print(zs.name)
# print(ls.name)
#
# print(zs.sex)
# print(ls.sex)
# zs.show()
# ls.show()
# print(Person.name)
